go/token.File.base (field)

21 uses

	go/token (current package)
		position.go#L102: 	base int    // Pos value range for this file is [base...base+size]
		position.go#L118: 	return f.base
		position.go#L227: 	return Pos(f.base + f.lines[line-1])
		position.go#L272: 	return Pos(f.base + offset)
		position.go#L280: 	if int(p) < f.base || int(p) > f.base+f.size {
		position.go#L281: 		panic(fmt.Sprintf("invalid Pos value %d (should be in [%d, %d])", p, f.base, f.base+f.size))
		position.go#L283: 	return int(p) - f.base
		position.go#L335: 	offset := int(p) - f.base
		position.go#L348: 		if int(p) < f.base || int(p) > f.base+f.size {
		position.go#L349: 			panic(fmt.Sprintf("invalid Pos value %d (should be in [%d, %d])", p, f.base, f.base+f.size))
		position.go#L440: 	f := &File{set: s, name: filename, base: base, size: size, lines: []int{0}}
		position.go#L470: 	return sort.Search(len(a), func(i int) bool { return a[i].base > x }) - 1
		position.go#L476: 	if f := s.last; f != nil && f.base <= int(p) && int(p) <= f.base+f.size {
		position.go#L484: 		if int(p) <= f.base+f.size {
		serialize.go#L36: 			base:  f.Base,
		serialize.go#L60: 			Base:  f.base,